package com.bjpowernode.payment02.web.controller;

import com.bjpowernode.payment02.web.models.dto.PaymentDto;
import com.bjpowernode.payment02.web.models.form.GoodsForm;
import com.bjpowernode.payment02.web.service.PaymentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class orderController {
    @Resource
    PaymentService paymentService;
    @RequestMapping("/order/buy")
    public String buy(GoodsForm goodsForm, Model model){
        PaymentDto paymentDto = paymentService.generateParamSaveOrder(goodsForm);
        return null;
    }
    @RequestMapping("/notice/kq")
    @ResponseBody
    public String notice(){
        return "ok";
    }
}
